package nc.ui.arap.buttonstat;

import nc.ui.arap.engine.ExtButtonObject;
import nc.ui.arap.engine.IActionRuntime;
import nc.ui.arap.engine.IButtonStatus;
import nc.ui.ep.dj.DjPanel;

public class DjCloseOperatorStatListener implements IButtonStatus {

	public void updateButtonStatus(ExtButtonObject bo, IActionRuntime runtime) {
		if(null != StatListenerHelper.getDjPanel(runtime)){
			int panelprop = StatListenerHelper.getDjPanel(runtime).getPanelProp();
			if(panelprop == 2 && !((DjPanel)runtime).isFROMCMP()){
				bo.setVisible(false);
				return ;
			}
		}
	}

}
